{% extends "master.html" %}
{% block subtitle %} - 货币管理 - 货币详情{% endblock %}

{% block extCSS %}
<style type="text/css">
    .atmtemplate{
        display : none;
    }
</style>
{% endblock %}
{% block extJS %}
<script language="JavaScript" type="text/javascript">
//<![CDATA[

//]]>
 </script>
{% endblock %}

{% block main %}
<div class="container">
    <div class="row">
        <ol class="breadcrumb">
          <li><a href="{{url_for('bpMas.view')}}">基础信息</a></li>
          <li><a href="{{url_for('bpCry.view')}}">货币管理</a></li>
          <li class="active">货币详情</li>
        </ol>
    </div>
    <div class="row">
        <div class="btn-toolbar pull-right">
            {% if getAllPermission(['MASTER_EDIT',]) %}
                <div class="btn-group"><a href="{{url_for('.view',action='update',id=obj.id)}}" class="btn btn-primary">{{BTN_UPDATE}}</a></div>
            {% endif %}
        </div>
    </div>
    <div class="row">
        <fieldset>
            <legend>货币基本信息</legend>
            
            <div class="col-md-4">
                <h4>货币代码</h4><p>{{obj.code|f}}&nbsp;</p>
            </div>
            <div class="col-md-4">
                <h4>货币名称</h4><p>{{obj.name|f}}&nbsp;</p>
            </div>
            <div class="col-md-4">
                <h4>备注</h4><p>{{obj.remark|f}}&nbsp;</p>
            </div>  
            <div class="col-md-12">
                <table class="table table-bordered">
                    <thead>
                        <tr><td>对人民币汇率</td><td>生效日期</td></tr>
                    </thead>
                    {% for r in obj.ratios %}
                        <tr><td>{{r.ratio}}</td><td>{{r.effTime|ft}}</td></tr>
                    {% endfor %}
                </table>
            </div>
                                                       
        </fieldset>
        {{mymacros.render_system_info(obj)}}
    </div>
    
   
</div>
{% endblock %}